<?php /* Smarty version 2.6.16, created on 2009-04-16 02:59:00
         compiled from Signup.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'Signup.html', 21, false),array('function', 'messages', 'Signup.html', 24, false),array('function', 'html_options', 'Signup.html', 69, false),array('function', 'html_select_date', 'Signup.html', 104, false),array('function', 'captcha', 'Signup.html', 135, false),)), $this); ?>
<br /><br />
<?php echo '
<script type="text/javascript">

	function checkuser()
	{
		sId(\'update_check\').style.display=\'none\';
		new Effect.Appear(\'ajax_main_image\');
		xajax_checkUsername(document.getElementById(\'userid\').value);
		return false;
	}

</script>
'; ?>

<table style="width:100%;" cellpadding="8" cellspacing="8">
<?php if (! $this->_tpl_vars['bProcessed']): ?>
	<tr>
		<td style="width:75%;vertical-align:top;font-size:9pt;" class="color">

		<div class="border13" style="padding:8px;font-size:10pt;"><img src="design/pic/spacer.gif" class="sqr" style="vertical-align:middle;" alt="" width="7" height="7" /> <span
			style="vertical-align:middle;"><b><?php echo smarty_function_language(array('text' => 'signup_now'), $this);?>
</b></span></div>
		<br />
		<?php echo $this->_tpl_vars['jsValMess']; ?>

		<?php echo smarty_function_messages(array('template' => '_blocks/errors_block.html','title' => $this->_tpl_vars['sSignupErrors']), $this);?>

		<form method="post" action="<?php echo $this->_tpl_vars['sUrl']; ?>
" enctype="multipart/form-data" id="ajax_signup_form">
		<?php echo $this->_tpl_vars['csrfInput']; ?>

		<?php if ($this->_tpl_vars['bAllowLangPack']): ?>
		<div><input type="hidden" name="lang_file" value="<?php echo $this->_tpl_vars['sLangFile']; ?>
" /></div>
		<?php endif; ?>
		<table style="width:100%;" cellpadding="4">
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;vertical-align:top;"><?php echo smarty_function_language(array('text' => 'username'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt;vertical-align:top;"><input id="userid" type="text" name="aUser[user]" value="<?php echo $this->_tpl_vars['aUser']['user']; ?>
" maxlength="<?php echo $this->_tpl_vars['iUserMax']; ?>
" size="40" onfocus="this.className='inputmain';new Effect.Appear('check_username');" onblur="this.className='';" />
				<span id="check_ajax_user"></span>
				<div id="check_username" style="display:none;">
				<div style="padding:4px;">
					<input type="button" value="<?php echo smarty_function_language(array('text' => "signup.check.user"), $this);?>
" name="checkUsername" style="cursor:pointer;" onclick="return checkuser();" />
					<span id="ajax_main_image" style="display:none;font-size:10pt;font-weight:bold;">
						<img src="design/pic/loader.gif" alt="" style="vertical-align:middle;" /> <?php echo smarty_function_language(array('text' => "signup.checking"), $this);?>

					</span>
					<span id="update_check" style="display:none;"></span>
				</div>
				</div>
				</td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'password'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt;"><input id="pass" type="password" name="pass" value="" maxlength="<?php echo $this->_tpl_vars['iPasswordMax']; ?>
" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" />
				<span id="check_ajax_pass"></span>
				</td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;" nowrap="nowrap"><?php echo smarty_function_language(array('text' => 'confirm_password'), $this);?>
:&nbsp;<span class="star">*</span></td>
				<td style="font-size:9pt;"><input type="password" name="pass2" value="" maxlength="<?php echo $this->_tpl_vars['iPasswordMax']; ?>
" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" />
				<span id="check_ajax_pass2"></span>
				</td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'e_mail'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt;"><input type="text" name="aUser[email]" value="<?php echo $this->_tpl_vars['aUser']['email']; ?>
" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" />
				<span id="check_ajax_email"></span>
				</td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'gender'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt;">
				<select name="aUser[gender]" style="width:150px;">
					<option value=""><?php echo smarty_function_language(array('text' => 'select'), $this);?>
</option>
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aGenders'],'selected' => $this->_tpl_vars['aUser']['gender']), $this);?>

				</select>
				</td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'location'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt;">
				<select name="aUser[location]" style="width:150px;"<?php if ($this->_tpl_vars['bZipState']): ?> onchange="checkUsMode();" <?php endif; ?>id="fldCountrySel">
					<option value=""><?php echo smarty_function_language(array('text' => 'select'), $this);?>
</option>
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aCountries'],'selected' => $this->_tpl_vars['aUser']['location']), $this);?>

				</select>
				</td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'city'), $this);?>
:</td>
				<td style="font-size:9pt;"><input type="text" name="aUser[city]" value="<?php echo $this->_tpl_vars['aUser']['city']; ?>
" size="40" maxlength="30" onfocus="this.className='inputmain';" onblur="this.className='';" /></td>
			</tr>
            <?php if ($this->_tpl_vars['bZipState']): ?>
            <tr>
                <td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'state'), $this);?>
:</td>
                <td style="font-size:9pt;">
                    <select name="aUser[state]" id="fldStateSel">
                    <option value=""><?php echo smarty_function_language(array('text' => 'select'), $this);?>
</option>
                    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aStates'],'selected' => $this->_tpl_vars['aUser']['state']), $this);?>

                    </select>
                </td>
            </tr>
            <tr>
                <td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'zip'), $this);?>
:</td>
                <td style="font-size:9pt;"><input type="text" name="aUser[zip]" value="<?php if (0 != $this->_tpl_vars['aUser']['zip']):  echo $this->_tpl_vars['aUser']['zip'];  endif; ?>" size="40" maxlength="30" onfocus="this.className='inputmain';" onblur="this.className='';" id="fldZip"/></td>
            </tr>
            <?php endif; ?>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'date_of_birth_164'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt;">
					<?php echo smarty_function_html_select_date(array('add_any' => 'true','prefix' => 'aBirthDate_','field_order' => 'DMY','month_format' => '%m','start_year' => $this->_tpl_vars['iStartYear'],'end_year' => $this->_tpl_vars['iEndYear'],'all_extra' => 'style="width:90px;"','field_separator' => ' / ','time' => $this->_tpl_vars['dtBirthdate'],'reverse_years' => true), $this);?>

				</td>
			</tr>
			<?php if ($this->_tpl_vars['aCustom']): ?>
			<?php $_from = $this->_tpl_vars['aCustom']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aField']):
?>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;vertical-align:top;"><?php echo smarty_function_language(array('translate' => $this->_tpl_vars['aField']['custom_field_name']), $this);?>
:</td>
				<td style="font-size:9pt;">
				<?php if ($this->_tpl_vars['aField']['custom_field_type'] == '1'): ?>
				<textarea cols="40" rows="6" name="text_option[<?php echo $this->_tpl_vars['aField']['custom_field_id']; ?>
]"><?php echo $this->_tpl_vars['aField']['post_value']; ?>
</textarea>
				<?php else: ?>
				<select name="field_option[<?php echo $this->_tpl_vars['aField']['custom_field_id']; ?>
]">
				<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aField']['options'],'selected' => $this->_tpl_vars['aField']['post_select'],'translate' => 'true'), $this);?>

				</select>
				<?php endif; ?>
				</td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
			<?php endif; ?>
            <?php if ($this->_tpl_vars['bSignupPic']): ?>
            <tr>
                <td style="width:35%;text-align:right;font-size:9pt;"><?php echo smarty_function_language(array('text' => 'profile_image'), $this);?>
:<?php if ($this->_tpl_vars['bSignupPic'] != '2'): ?> <span class="star">*</span><?php endif; ?></td>
                <td style="font-size:9pt;"><input type="file" name="user_pic"/></td>
            </tr>
            <?php endif; ?>
		</table>
        <?php if ($this->_tpl_vars['bIsProtImage']): ?>
		<br />
		<table style="width:100%;" cellpadding="4" class="border2">
			<tr>
				<td style="width:35%; text-align:right; font-size:9pt; vertical-align:top;"><?php echo smarty_function_language(array('text' => 'verification_code'), $this);?>
:</td>
				<td style="font-size:9pt; vertical-align:top;"><?php echo smarty_function_captcha(array('input' => 'sProtCode'), $this);?>
</td>
			</tr>
			<tr>
				<td style="width:35%; text-align:right; font-size:9pt; vertical-align:top;"><?php echo smarty_function_language(array('text' => 'Mod_Account.enter_above_code_here'), $this);?>
: <span class="star">*</span></td>
				<td style="font-size:9pt; vertical-align:top;">
					<input type="text" id="sProtCode" name="sProtCode" size="12" onfocus="this.className='inputmain';" onblur="this.className='';" />
					<div style="font-size:8pt;"><i>(<?php echo smarty_function_language(array('text' => 'Mod_Account.code_case_sensitive'), $this);?>
)</i></div>
				</td>
			</tr>
		</table>
        <?php endif; ?>

		<br />
		<table style="width:100%;" cellpadding="4">
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"></td>
				<td style="font-size:9pt;"><input type="checkbox" name="agree" style="vertical-align:middle;" /> <a href="javascript:void(0);" onclick="popUp2('<?php echo $this->_tpl_vars['sAgreeUrl']; ?>
','500','500','yes','200','100');"><?php echo smarty_function_language(array('text' => 'i_agree_to_our_terms_amp_conditions'), $this);?>
</a></td>
			</tr>
			<tr>
				<td style="width:35%;text-align:right;font-size:9pt;"></td>
				<td style="font-size:9pt;"><input type="submit" value="<?php echo smarty_function_language(array('text' => 'submit_the_form'), $this);?>
" name="act[signup]" style="cursor:pointer;" /></td>
			</tr>
		</table>
		</form>
		
		<?php if ($this->_tpl_vars['bIsProtImage']): ?>
		<script type="text/javascript">
			sId('sProtCode').setAttribute('autocomplete','off');
		</script>
		<?php endif; ?>

		</td>
		<td style="width:25%;vertical-align:top;font-size:9pt;" class="color">

		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/public/_banner-right.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<br />
		<br />

		</td>
	</tr>
<?php else: ?>
	<tr>
		<td style="width:70%;vertical-align:top;font-size:9pt;" class="color">

		<div class="border13" style="padding:8px;font-size:10pt;"><img src="design/pic/spacer.gif" class="sqr" style="vertical-align:middle;" alt="" width="7" height="7" /> <span
			style="vertical-align:middle;"><b><?php echo smarty_function_language(array('text' => 'verify_your_email'), $this);?>
</b></span></div>
		<div style="padding:15px;"><?php echo smarty_function_language(array('text' => 'an_email_has_been_sent_to'), $this);?>
: <?php echo $this->_tpl_vars['sEmail']; ?>
 <br />
		<br />
		<?php echo smarty_function_language(array('text' => 'please_login_and_check_your_email_t'), $this);?>
</div>

		</td>
		<td style="width:30%;vertical-align:top;font-size:9pt;" class="color">

		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/public/_banner-right.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<br />
		<br />

		</td>
	</tr>
<?php endif; ?>
</table>
<?php if ($this->_tpl_vars['bZipState']): ?><script type="text/javascript">checkUsMode();</script><?php endif; ?>